//
//  Asteroid.h
//  MathMastersAsteroids//
//
//  Created by Jordon Phillips on 3/7/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//
//  The asteroids containing numbers that the player must destroy

#import <Foundation/Foundation.h>
#import "GameObject.h"
#import "Number.h"
#import "SoundController.h"

@interface Asteroid : GameObject {
	NSTimer *animation;//controls the animations
	Number* number;//the number inside the asteroid
	int health;//the asteroids health
	float speed;//the speed the asteroid moves
	BOOL explode;//is true if asteroid is exploding
	int animWait;//slows down the animation
	SoundController *sound;//plays sounds
	BOOL soundToggle;//determines if the sound is on
}
@property (assign)Number* number;
@property int health;
@property float speed;
@property BOOL explode;
@property BOOL soundToggle;
- (void)initAsteroid:(float)newX:(float)newY:(int)newValue;
- (void)act;
- (void)collideWithPlayer;
- (void)collideWithBullet;
- (void)reset:(float)newX:(float)newY:(int)newValue;
-(void)animate;



@end
